public with sharing class John_Student_Flow_addTen2SchoolFree {
    // @InvocableMethod
    @InvocableMethod(label='schoolFee')
    // 有返回值
    public static List<Student__c> addTenSchoolFree(List<Student__c> stuList) {
        for(Student__c stu : stuList) {
            stu.School_Fee__c = stu.School_Fee__c + 100;
        }
        update stuList;
        return stuList;
    }


    // 无返回值
    /* @InvocableMethod
    public static void addTenSchoolFree(List<Student__c> stuList) {
        for(Student__c stu : stuList) {
            stu.School_Fee__c = stu.School_Fee__c + 100;
        }
        update stuList;
    } */

}